home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000090_ebh@burntmail.com_Wed Jan 28 11:41:45 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
4KB
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!ord-feed.news.verio.net!stl-feed.news.verio.net!newsreader.wustl.edu!news.mv.net!newsfeed.mathworks.com!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: ebh@burntmail.com (EBH)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help with a script
Date: 28 Jan 2004 07:26:02 -0800
Organization: http://groups.google.com
Lines: 63
Message-ID: <6b84683a.0401280726.24b3edfb@posting.google.com>
References: <6b84683a.0401271212.4059fe85@posting.google.com> <deb126db.0401272157.32647b1b@posting.google.com>
NNTP-Posting-Host: 63.127.208.90
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1075303562 7398 127.0.0.1 (28 Jan 2004 15:26:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 28 Jan 2004 15:26:02 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14790
slash_dev_slash_null_2000@yahoo.com (Mark Sapiro) wrote in message news:<deb126db.0401272157.32647b1b@posting.google.com>...
> ebh@burntmail.com (EBH) wrote in message news:<6b84683a.0401271212.4059fe85@posting.google.com>...
> > From what I currently know, I understand that after successfully
> > logging in, I can issue the "connect" command which will transfer
> > control from the script to the user. I need to know how to pick it up
> > again when required by a screen prompt (Iniitate you KERMIT, or
> > whatever). And as mentioned above I still to know when the remote
> > system disconnects so that I can end execution of the script.
>
> If it's acceptable for the remote host to tell the user what to do, it
> can tell the user to escape back to command mode by typing the Kermit
> connect mode escape character followed by "c". You don't say what
> Kermit the user will be using, but if it is Kermit-95, the user can
> also normally return to command mode with Alt-x, but this can be
> changed by assigning the \Kexit verb to a different key.
>
> The connect mode escape character can be set with the command
> set escape-character
> (help set escape-character for more info). The default escape
> character in C-Kermit is control-\ in Kermit-95 it's control-]
>
> When the user escapes back to command mode, the script will pick up
> with the command following the connect.
>
I am using C-Kermit and I know all about this but unfortunately this
will be too much for my users.
> You might also be able to use Kermit's autodownload/autoupload
> features to bypass the user's need to escape to command mode. In this
> case, if the remote host attemps to "send" or "get" a file to/from the
> local Kermit, the local Kermit will switch from connect mode to server
> mode automatically to receive/send the file(s).
>
After posting posting the I actually found this feature and I tried it
but it only worked when the remote tried to "send" a file. When it
tried to "get" a file it didn't and I suspect it has something to do
with the file name. The remote is giving the received file some name
over which I have no control (and I don't know the algorithm either so
that I can name my file the same), and without me actually escaping
back and explicitily sending my file it just won't work.
So I guess the real question when I use the autodownload/autoupload
feature how can I preset the file names fir the upload and/or download
> There are various ways to tell if the remote disconnects if the script
> is executing. You should always test all commands for success or
> failure anyway, and any command that communicates with the host will
> fail if the connection is gone. Also, you can explicitly use the
> condition "open connection" as in
> if open connection ...
> while open connection ...
> to test the connection in the script.
>
> Normally if a disconnect occurs in conect mode, Kermit returns to
> command mode (to the script in your case) so you could test for this
> with something like
> connect
> if not open connection exit ; or end as appropriate
This didn't work as described, but I think this is more an issue with
the remote, I will need to follow-up with them.
THanks anyway for all the help